home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6939 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  44 lines

  1. Path: news.mindspring.com!usenet
  2. From: kbeaver@a.crl.com
  3. Newsgroups: comp.lang.c
  4. Subject: Turbo C linker errors
  5. Date: 16 Feb 1996 13:50:58 GMT
  6. Organization: MindSpring Enterprises
  7. Message-ID: <4g2242$2ll@firebrick.mindspring.com>
  8. NNTP-Posting-Host: kbrock.mindspring.com
  9. X-Newsreader: SPRY News 3.03 (SPRY, Inc.)
  10.  
  11. I am using Borland Turbo C++ v3.0 and I am receiving the following errors:
  12.  
  13. "Linker error: Undefined symbol NWGETFILESERVERINFORMATION in module ..\prog\test.cpp"
  14. -and-
  15. "Linker error: Undefined symbol NWCALLSINIT in module ..\prog\test.cpp"
  16.  
  17. I am just making a basic NetWare API call as seen below using the header file "nwcalls.h"
  18.  
  19. #include <stdio.h>
  20. #include <conio.h>
  21. #include <nwcalls.h>
  22.  
  23. void main(void)
  24. {
  25. NWSERVICE_VERSION       majorVersion;
  26. NWCCODE                 ccode;
  27.  
  28. ccode = NWCallsInit (NULL, NULL);
  29.  
  30. if (ccode) return;
  31. ccode = NWGetFileServerInformation (0,0,&majorVersion,0,0,0,0,0,0,0,0);
  32. printf("NetWare major version: %04x\n",ccode);
  33. return;
  34. }
  35.  
  36.  
  37. I have programmed in C in the past but am fairly new to making external library calls like this.  Can anyone shed some light on
  38. my problem?
  39.  
  40. Thanks!
  41.  
  42. KB
  43. kbeaver@a.crl.com
  44.